<?php
/**
 * My account page controller
 *
 * @author Dima
 *
 */

class modules_default_controllers_ControllerUserarea extends modules_default_controllers_ControllerBase
{

	protected $_bForLoggedUsersOnly = true;
	protected $_contentLayout = 'frontpage';

//----------------------------------------------------------------------------------------------------

	public function init()
	{
		if (! $this->getRequest()->isXmlHttpRequest())
		{
			parent::init();
			$categoryTree = array();

			$this->view->title = 'My account';

			$categoryTree[0][1] = array(
					'url' => '/billing/favorite',
					'anchor' => 'My Favorites' );

			$categoryTree[0][2] = array(
					'url' => '/billing/index/n/balans',
					'anchor' => 'Balance' );

			$categoryTree[0][3] = array(
					'url' => '/billing/index/n/new',
					'anchor' => 'New' );

			$categoryTree[0][4] = array(
					'url' => '/billing/index/n/payed',
					'anchor' => 'Paid' );

			$categoryTree[0][5] = array(
					'url' => '/calendar',
					'anchor' => 'My Calendar' );
			$categoryTree[0][6] = array(
					'url' => '/address',
					'anchor' => 'Address Book' );
			$this->view->TreeCategories = $categoryTree;
			$this->view->TreeTitle 		= 'My account';
		}
		$this->_helper->AjaxContext()->initContext('json');

	}

//----------------------------------------------------------------------------------------------------

}
